//  全局静态变量和静态方法
//  Common.h
//  X-Touch2
//
//  Created by shengchao yang on 12-3-7.
//  Copyright (c) 2012年 foxhis. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface Common : NSObject
+(void) checkSettings;
+(void) initDBWithDefaultData;
+(void) createTables;
+(void) initDBWithDefaultDB;
+(void) initXRTranslateWithDefault;
+(NSString *) translateString:(NSString *)str;
+(NSString *) translateImage:(NSString *)img;
+(NSString *) jsonfield:(NSString *)des;
+(id) DictObject:(NSDictionary *) dict item:(NSString *)itemName;
+(NSString *) StringTrim:(NSString *)source;
+(NSString *) formatNilObject:(NSString *)string;
+(NSString *) NSDateToNSString:(NSDate *)date Format:(NSString *) format;
+(NSDate *) NSStringToNSDate:(NSString *)string Format:(NSString *) format;
+(NSString *) priceFormatter:(NSString *)priceString units:(NSString *)unit;
+(NSString *) numberFormatter:(NSString *)numberString;

+(BOOL) checkPointInRange:(CGPoint) point Range:(CGRect) rect;

//数据下载
+(NSMutableArray *) downLoadPluBook;
+(NSMutableArray *) downLoadPluMenu:(NSString *)pbCode;
+(NSMutableArray *) downLoadPluSort:(NSString *)pmCode;
+(NSMutableArray *) downLoadPluPlu:(NSString *)psCode pluMenu:(NSString *)pmCode;
+(void) downLoadPluFood:(NSString *)ppCode;
+(void) downLoadPluCigarete:(NSString *)ppCode;
+(void) downLoadPluDrink:(NSString *)ppCode;
+(void) downLoadPluPkg:(NSString *)ppCode;
+(NSMutableArray *) downLoadPluSpecialSort;
+(void) downLoadPluSpecialCode:(NSString *)pssCode;

+(NSInteger) downLoadPluTable;
+(NSInteger) downLoadPluEmpno;
+(void) downLoadRemoteMenus:(NSString *)searchText;
+(void) downLoadRemoteDishes:(NSString *)rmMenu;
+(NSMutableArray *) downLoadOtherImage:(NSString *)imageType;
+(BOOL) downLoadImageFixedURL:(NSString *)fixedURL folderName:(NSString *)folderName imageName:(NSString *)imageName;
@end
